package com.xyht.medicine_management_system.modules.consumptionPoint.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 积分商城表
 * </p>
 *
 * @author XYHT
 * @since 2023-12-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mms_consumption_point_shop")
@ApiModel(value="MmsConsumptionPointShop对象", description="积分商城表")
public class MmsConsumptionPointShop implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "积分商城商品id")
    private String id;

    @ApiModelProperty(value = "药品id")
    private String medicineId;

    @ApiModelProperty(value = "积分类型(0:自定义积分 1:根据规则计算积分)")
    private Integer type;

    @ApiModelProperty(value = "积分")
    private Integer points;

    @ApiModelProperty(value = "积分规则id")
    private String ruleId;

    @ApiModelProperty(value = "备注")
    private String note;

    @ApiModelProperty(value = "创建人")
    private String userId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "是否删除：0：未删除 1：已删除")
    @TableLogic
    private Integer isDeleted;


}
